﻿using Appliaction.Dto.DB;
using Domain.Entitys.DB;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Appliaction.IAppServices.DB
{
    public interface IDb_MeasureService
    {
        /// <summary>
        /// 分页查询、条件查询
        /// </summary>
        /// <param name="Measure_code">编码</param>
        /// <param name="Measure_name">昵称</param>
        /// <param name="currentPage">当前页</param>
        /// <param name="pageSize">查几条</param>
        /// <returns></returns>
        List<Db_Measure> SelectDb_MeasureFYWHERE(string Measure_code,string Measure_name,int currentPage,int pageSize);

        /// <summary>
        /// 查询总条数
        /// </summary>
        /// <param name="Measure_code">编码</param>
        /// <param name="Measure_name">昵称</param>
        /// <returns></returns>
        int Db_MeasureCount(string Measure_code,string Measure_name);

        /// <summary>
        /// 逻辑删除
        /// </summary>
        /// <param name="db_MeasureDeleteDto">删除dto</param>
        /// <returns></returns>
        Task<int> Db_MeasureDelete(Db_MeasureDeleteDto db_MeasureDeleteDto);

        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="db_MeasureAddDto">添加dto</param>
        /// <returns></returns>
        Task<int> Db_MeasureAdd(Db_MeasureAddDto db_MeasureAddDto);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="db_MeasureUpdateDto">修改dto</param>
        /// <returns></returns>
        Task<int> Db_MeasureUpdate(Db_MeasureUpdateDto db_MeasureUpdateDto);


    }
}
